<template>
  <div class="common-title" v-if="is_print">
    <div class="icon"></div>
    <div class="content">{{ title }}</div>
  </div>

  <div class="common-title" v-else>
    <div class="icon icon-2"></div>
    <div class="content content-2">{{ title }}</div>
  </div>
</template>

<script>
export default {
  name: 'common-title',
  props: {
    title: '',
    is_print: {
      default: true,
      type: Boolean,
    },
  },
}
</script>

<style scoped lang="less">
.common-title {
  display: flex;
  align-items: center;
  .icon {
    width: 6px;
    height: 6px;
    background: #1388ff;
    border-radius: 50%;
    margin-right: 5px;
  }

  .icon-2 {
    background: #000;
  }
  .content {
    font-size: 16px;
    font-weight: bold;
    color: #1388ff;
  }
  .content-2 {
    color: #000;
  }
}
</style>
